#include "stdio.h"
#include "cqueue.h"

int main(){
    CQueue<int> q(100);
    
    printf("pop[%d]\n", q.pop(-1));
    for(int i=0;i<110;i++){
        if(!q.push(i)){
            fprintf(stderr, "push error[%d]\n", i);
        }
    }
    int k;
    while((k=q.pop(-1))!=-1){
        fprintf(stdout, "pop [%d]\n", k);
    }
    return 0;
}
